package com.jintian.smart.kernel.switching.api;

import com.jintian.smart.kernel.switching.dto.db.Attachment;

import java.io.File;

public interface IFileAdapter {

	boolean support(Class<?> storageEntityClass);

	Attachment download(Object attachementBean, File attachmentDir);

	void upload(Object attachementBean, Attachment attachment, File attachmentDir);

	String getBeanKey(Object attachementBean);

	void delete(Object attachementBean);
}
